package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

public interface IDishService extends IService<Dish> {
    //新增菜品，并且插入菜品对相应的口味表：dish dishFlavor
    void saveWithFlavor(DishDto dishDto);
    //根据id查询菜品信息及口味信息
    DishDto getByIdWithFlavor(Long id);

    //跟新菜品信息及口味信息
    void updateWithFlavor(DishDto dishDto);

    void remove(Long id);
}
